home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.04 Apr 96 / ThreadingAppleEvents.sit / ThreadingAppleEvents / Grant's CGI Code 1.0b13 / Interface / AboutBox.c next >
MacBinary  |  1995-12-10  |  4.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Dec 10 17:22:42 1995, modified Sun Dec 10 17:22:42 1995, creator 'CWIE', type ASCII, 3634 bytes "AboutBox.c" , at 0xeb2 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 41 62 6f 75 74 42 | 6f 78 2e 63 00 00 00 00 |..AboutB|ox.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0e 32 00 | 00 01 9a ac f1 0e 32 ac |......2.|......2.|
|00000060| f1 0e 32 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |..2.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0a 0f 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 0d 20 2a 09 41 62 6f |/*****. |*. *.Abo|
|00000090| 75 74 42 6f 78 2e 63 0d | 20 2a 0d 20 2a 09 54 68 |utBox.c.| *. *.Th|
|000000a0| 69 73 20 69 73 20 61 20 | 73 75 70 70 6f 72 74 20 |is is a |support |
|000000b0| 66 69 6c 65 20 66 6f 72 | 20 22 47 72 61 6e 74 27 |file for| "Grant'|
|000000c0| 73 20 43 47 49 20 46 72 | 61 6d 65 77 6f 72 6b 22 |s CGI Fr|amework"|
|000000d0| 2e 0d 20 2a 09 50 6c 65 | 61 73 65 20 73 65 65 20 |.. *.Ple|ase see |
|000000e0| 74 68 65 20 6c 69 63 65 | 6e 73 65 20 61 67 72 65 |the lice|nse agre|
|000000f0| 65 6d 65 6e 74 20 74 68 | 61 74 20 61 63 63 6f 6d |ement th|at accom|
|00000100| 70 61 6e 69 65 73 20 74 | 68 65 20 64 69 73 74 72 |panies t|he distr|
|00000110| 69 62 75 74 69 6f 6e 20 | 70 61 63 6b 61 67 65 0d |ibution |package.|
|00000120| 20 2a 09 66 6f 72 20 6c | 69 63 65 6e 73 69 6e 67 | *.for l|icensing|
|00000130| 20 64 65 74 61 69 6c 73 | 2e 0d 20 2a 0d 20 2a 09 | details|.. *. *.|
|00000140| 43 6f 70 79 72 69 67 68 | 74 20 a9 31 39 39 35 20 |Copyrigh|t .1995 |
|00000150| 62 79 20 47 72 61 6e 74 | 20 4e 65 75 66 65 6c 64 |by Grant| Neufeld|
|00000160| 0d 20 2a 09 67 72 61 6e | 74 40 61 63 6d 2e 63 6f |. *.gran|t@acm.co|
|00000170| 6d 0d 20 2a 09 68 74 74 | 70 3a 2f 2f 61 72 70 70 |m. *.htt|p://arpp|
|00000180| 31 2e 63 61 72 6c 65 74 | 6f 6e 2e 63 61 2f 67 72 |1.carlet|on.ca/gr|
|00000190| 61 6e 74 2f 0d 20 2a 0d | 20 2a 2a 2a 2a 2a 2f 0d |ant/. *.| *****/.|
|000001a0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 4d 79 43 6f 6e |.#includ|e "MyCon|
|000001b0| 66 69 67 75 72 61 74 69 | 6f 6e 2e 68 22 0d 0d 23 |figurati|on.h"..#|
|000001c0| 69 66 20 6b 43 6f 6d 70 | 69 6c 65 57 69 74 68 46 |if kComp|ileWithF|
|000001d0| 6f 72 65 67 72 6f 75 6e | 64 0d 0d 23 69 6e 63 6c |oregroun|d..#incl|
|000001e0| 75 64 65 20 22 63 6f 6d | 70 69 6c 65 72 5f 73 74 |ude "com|piler_st|
|000001f0| 75 66 66 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |uff.h".#|include |
|00000200| 22 63 6f 6e 73 74 61 6e | 74 73 2e 68 22 0d 23 69 |"constan|ts.h".#i|
|00000210| 6e 63 6c 75 64 65 20 22 | 67 6c 6f 62 61 6c 73 2e |nclude "|globals.|
|00000220| 68 22 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 44 65 |h"..#inc|lude "De|
|00000230| 62 75 67 55 74 69 6c 2e | 68 22 0d 23 69 6e 63 6c |bugUtil.|h".#incl|
|00000240| 75 64 65 20 22 49 63 6f | 6e 55 74 69 6c 2e 68 22 |ude "Ico|nUtil.h"|
|00000250| 0d 23 69 6e 63 6c 75 64 | 65 20 22 57 69 6e 64 6f |.#includ|e "Windo|
|00000260| 77 49 6e 74 2e 68 22 0d | 0d 23 69 6e 63 6c 75 64 |wInt.h".|.#includ|
|00000270| 65 20 22 41 62 6f 75 74 | 42 6f 78 2e 68 22 0d 0d |e "About|Box.h"..|
|00000280| 0d 2f 2a 2a 2a 20 20 4c | 4f 43 41 4c 20 56 41 52 |./*** L|OCAL VAR|
|00000290| 49 41 42 4c 45 53 20 2a | 2a 2a 2f 0d 0d 73 74 61 |IABLES *|**/..sta|
|000002a0| 74 69 63 09 44 69 61 6c | 6f 67 50 74 72 09 09 76 |tic.Dial|ogPtr..v|
|000002b0| 41 62 6f 75 74 42 6f 78 | 44 69 61 6c 6f 67 3b 0d |AboutBox|Dialog;.|
|000002c0| 73 74 61 74 69 63 09 48 | 61 6e 64 6c 65 09 09 09 |static.H|andle...|
|000002d0| 76 41 62 6f 75 74 49 63 | 6f 6e 53 75 69 74 65 48 |vAboutIc|onSuiteH|
|000002e0| 64 6c 3b 0d 73 74 61 74 | 69 63 09 55 73 65 72 49 |dl;.stat|ic.UserI|
|000002f0| 74 65 6d 55 50 50 09 09 | 76 41 62 6f 75 74 49 63 |temUPP..|vAboutIc|
|00000300| 6f 6e 55 50 50 3b 0d 0d | 0d 2f 2a 2a 2a 20 20 4c |onUPP;..|./*** L|
|00000310| 4f 43 41 4c 20 43 4f 4e | 53 54 41 4e 54 53 20 2a |OCAL CON|STANTS *|
|00000320| 2a 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 20 6b 72 69 |**/..#de|fine kri|
|00000330| 41 62 6f 75 74 42 6f 78 | 41 70 70 49 63 6f 6e 09 |AboutBox|AppIcon.|
|00000340| 09 09 32 0d 0d 0d 2f 2a | 2a 2a 20 20 4c 4f 43 41 |..2.../*|** LOCA|
|00000350| 4c 20 50 52 4f 54 4f 54 | 59 50 45 53 20 2a 2a 2a |L PROTOT|YPES ***|
|00000360| 2f 0d 0d 09 70 61 73 63 | 61 6c 20 76 6f 69 64 09 |/...pasc|al void.|
|00000370| 61 62 6f 75 74 42 6f 78 | 41 70 70 49 63 6f 6e 09 |aboutBox|AppIcon.|
|00000380| 28 20 44 69 61 6c 6f 67 | 50 74 72 2c 20 73 68 6f |( Dialog|Ptr, sho|
|00000390| 72 74 20 29 3b 0d 0d 0d | 2f 2a 2a 2a 20 20 46 55 |rt );...|/*** FU|
|000003a0| 4e 43 54 49 4f 4e 53 20 | 20 2a 2a 2a 2f 0d 0d 23 |NCTIONS | ***/..#|
|000003b0| 70 72 61 67 6d 61 20 73 | 65 67 6d 65 6e 74 20 53 |pragma s|egment S|
|000003c0| 74 61 72 74 75 70 0d 2f | 2a 20 69 6e 69 74 69 61 |tartup./|* initia|
|000003d0| 6c 69 7a 65 20 74 68 65 | 20 76 61 72 69 61 62 6c |lize the| variabl|
|000003e0| 65 73 20 75 73 65 64 20 | 66 6f 72 20 74 68 65 20 |es used |for the |
|000003f0| 61 62 6f 75 74 20 62 6f | 78 20 2a 2f 0d 76 6f 69 |about bo|x */.voi|
|00000400| 64 0d 41 62 6f 75 74 42 | 6f 78 49 6e 69 74 20 28 |d.AboutB|oxInit (|
|00000410| 20 76 6f 69 64 20 29 0d | 7b 0d 09 76 41 62 6f 75 | void ).|{..vAbou|
|00000420| 74 42 6f 78 44 69 61 6c | 6f 67 09 09 3d 20 6e 69 |tBoxDial|og..= ni|
|00000430| 6c 3b 0d 09 76 41 62 6f | 75 74 49 63 6f 6e 53 75 |l;..vAbo|utIconSu|
|00000440| 69 74 65 48 64 6c 09 3d | 20 6e 69 6c 3b 0d 09 76 |iteHdl.=| nil;..v|
|00000450| 41 62 6f 75 74 49 63 6f | 6e 55 50 50 09 09 3d 20 |AboutIco|nUPP..= |
|00000460| 6e 69 6c 3b 0d 7d 20 2f | 2a 20 41 62 6f 75 74 42 |nil;.} /|* AboutB|
|00000470| 6f 78 49 6e 69 74 20 2a | 2f 0d 23 70 72 61 67 6d |oxInit *|/.#pragm|
|00000480| 61 20 73 65 67 6d 65 6e | 74 20 55 74 69 6c 69 74 |a segmen|t Utilit|
|00000490| 69 65 73 0d 0d 0d 2f 2a | 20 6f 70 65 6e 20 74 68 |ies.../*| open th|
|000004a0| 65 20 61 62 6f 75 74 20 | 62 6f 78 20 64 69 61 6c |e about |box dial|
|000004b0| 6f 67 20 77 69 6e 64 6f | 77 20 2a 2f 20 0d 76 6f |og windo|w */ .vo|
|000004c0| 69 64 0d 41 62 6f 75 74 | 42 6f 78 4f 70 65 6e 20 |id.About|BoxOpen |
|000004d0| 28 20 76 6f 69 64 20 29 | 0d 7b 0d 09 73 68 6f 72 |( void )|.{..shor|
|000004e0| 74 09 09 09 69 74 65 6d | 54 79 70 65 3b 0d 09 48 |t...item|Type;..H|
|000004f0| 61 6e 64 6c 65 09 09 09 | 69 74 65 6d 3b 0d 09 52 |andle...|item;..R|
|00000500| 65 63 74 09 09 09 62 6f | 78 3b 0d 09 47 72 61 66 |ect...bo|x;..Graf|
|00000510| 50 74 72 09 09 09 73 61 | 76 65 50 6f 72 74 3b 0d |Ptr...sa|vePort;.|
|00000520| 09 0d 09 69 66 20 28 20 | 76 41 62 6f 75 74 42 6f |...if ( |vAboutBo|
|00000530| 78 44 69 61 6c 6f 67 20 | 3d 3d 20 6e 69 6c 20 29 |xDialog |== nil )|
|00000540| 0d 09 7b 0d 09 09 76 41 | 62 6f 75 74 42 6f 78 44 |..{...vA|boutBoxD|
|00000550| 69 61 6c 6f 67 20 3d 20 | 47 65 74 4e 65 77 44 69 |ialog = |GetNewDi|
|00000560| 61 6c 6f 67 20 28 20 6b | 41 62 6f 75 74 42 6f 78 |alog ( k|AboutBox|
|00000570| 44 4c 4f 47 2c 20 6e 69 | 6c 2c 20 28 57 69 6e 64 |DLOG, ni|l, (Wind|
|00000580| 6f 77 50 74 72 29 2d 31 | 4c 20 29 3b 0d 09 09 0d |owPtr)-1|L );....|
|00000590| 09 09 69 66 20 28 20 76 | 41 62 6f 75 74 42 6f 78 |..if ( v|AboutBox|
|000005a0| 44 69 61 6c 6f 67 20 21 | 3d 20 6e 69 6c 20 29 0d |Dialog !|= nil ).|
|000005b0| 09 09 7b 0d 09 09 09 57 | 69 6e 64 6f 77 4e 65 77 |..{....W|indowNew|
|000005c0| 53 65 74 49 6e 66 6f 20 | 28 20 76 41 62 6f 75 74 |SetInfo |( vAbout|
|000005d0| 42 6f 78 44 69 61 6c 6f | 67 2c 20 57 69 6e 64 6f |BoxDialo|g, Windo|
|000005e0| 77 5f 61 62 6f 75 74 2c | 20 66 61 6c 73 65 2c 20 |w_about,| false, |
|000005f0| 6e 69 6c 20 29 3b 0d 09 | 09 09 0d 09 09 09 69 66 |nil );..|......if|
|00000600| 20 28 20 76 41 62 6f 75 | 74 49 63 6f 6e 55 50 50 | ( vAbou|tIconUPP|
|00000610| 20 3d 3d 20 6e 69 6c 20 | 29 0d 09 09 09 7b 0d 09 | == nil |)....{..|
|00000620| 09 09 09 76 41 62 6f 75 | 74 49 63 6f 6e 55 50 50 |...vAbou|tIconUPP|
|00000630| 20 3d 20 4e 65 77 55 73 | 65 72 49 74 65 6d 50 72 | = NewUs|erItemPr|
|00000640| 6f 63 20 28 20 61 62 6f | 75 74 42 6f 78 41 70 70 |oc ( abo|utBoxApp|
|00000650| 49 63 6f 6e 20 29 3b 0d | 09 09 09 7d 0d 09 09 09 |Icon );.|...}....|
|00000660| 0d 09 09 09 2f 2a 20 69 | 6e 73 74 61 6c 6c 20 74 |..../* i|nstall t|
|00000670| 68 65 20 64 72 61 77 69 | 6e 67 20 70 72 6f 63 65 |he drawi|ng proce|
|00000680| 64 75 72 65 20 66 6f 72 | 20 74 68 65 20 61 70 70 |dure for| the app|
|00000690| 6c 69 63 61 74 69 6f 6e | 20 69 63 6f 6e 20 75 73 |lication| icon us|
|000006a0| 65 72 20 69 74 65 6d 20 | 2a 2f 0d 09 09 09 47 65 |er item |*/....Ge|
|000006b0| 74 44 69 61 6c 6f 67 49 | 74 65 6d 20 28 20 76 41 |tDialogI|tem ( vA|
|000006c0| 62 6f 75 74 42 6f 78 44 | 69 61 6c 6f 67 2c 20 6b |boutBoxD|ialog, k|
|000006d0| 72 69 41 62 6f 75 74 42 | 6f 78 41 70 70 49 63 6f |riAboutB|oxAppIco|
|000006e0| 6e 2c 20 26 69 74 65 6d | 54 79 70 65 2c 20 26 69 |n, &item|Type, &i|
|000006f0| 74 65 6d 2c 20 26 62 6f | 78 20 29 3b 0d 09 09 09 |tem, &bo|x );....|
|00000700| 53 65 74 44 69 61 6c 6f | 67 49 74 65 6d 20 28 20 |SetDialo|gItem ( |
|00000710| 76 41 62 6f 75 74 42 6f | 78 44 69 61 6c 6f 67 2c |vAboutBo|xDialog,|
|00000720| 20 6b 72 69 41 62 6f 75 | 74 42 6f 78 41 70 70 49 | kriAbou|tBoxAppI|
|00000730| 63 6f 6e 2c 20 69 74 65 | 6d 54 79 70 65 2c 20 28 |con, ite|mType, (|
|00000740| 48 61 6e 64 6c 65 29 76 | 41 62 6f 75 74 49 63 6f |Handle)v|AboutIco|
|00000750| 6e 55 50 50 2c 20 26 62 | 6f 78 20 29 3b 0d 09 09 |nUPP, &b|ox );...|
|00000760| 7d 0d 09 0d 09 09 69 66 | 20 28 20 76 41 62 6f 75 |}.....if| ( vAbou|
|00000770| 74 42 6f 78 44 69 61 6c | 6f 67 20 21 3d 20 6e 69 |tBoxDial|og != ni|
|00000780| 6c 20 29 0d 09 09 7b 0d | 09 09 09 2f 2a 20 73 65 |l )...{.|.../* se|
|00000790| 74 20 74 68 65 20 5e 30 | 20 70 61 72 61 6d 65 74 |t the ^0| paramet|
|000007a0| 65 72 20 74 6f 20 62 65 | 20 74 68 65 20 76 65 72 |er to be| the ver|
|000007b0| 73 69 6f 6e 20 73 74 72 | 69 6e 67 20 2a 2f 0d 09 |sion str|ing */..|
|000007c0| 09 09 50 61 72 61 6d 54 | 65 78 74 20 28 20 67 56 |..ParamT|ext ( gV|
|000007d0| 65 72 73 69 6f 6e 53 74 | 72 2c 20 6e 69 6c 2c 20 |ersionSt|r, nil, |
|000007e0| 6e 69 6c 2c 20 6e 69 6c | 20 29 3b 0d 09 09 09 0d |nil, nil| );.....|
|000007f0| 09 09 09 2f 2a 20 63 68 | 61 6e 67 65 20 74 68 65 |.../* ch|ange the|
|00000800| 20 64 69 61 6c 6f 67 20 | 70 6f 72 74 20 66 6f 6e | dialog |port fon|
|00000810| 74 20 74 6f 20 47 65 6e | 65 76 61 20 2a 2f 0d 09 |t to Gen|eva */..|
|00000820| 09 09 47 65 74 50 6f 72 | 74 09 09 28 20 26 73 61 |..GetPor|t..( &sa|
|00000830| 76 65 50 6f 72 74 20 29 | 3b 0d 09 09 09 53 65 74 |vePort )|;....Set|
|00000840| 50 6f 72 74 09 09 28 20 | 28 47 72 61 66 50 74 72 |Port..( |(GrafPtr|
|00000850| 29 76 41 62 6f 75 74 42 | 6f 78 44 69 61 6c 6f 67 |)vAboutB|oxDialog|
|00000860| 20 29 3b 0d 09 09 09 54 | 65 78 74 46 6f 6e 74 09 | );....T|extFont.|
|00000870| 28 20 67 65 6e 65 76 61 | 20 29 3b 0d 09 09 09 53 |( geneva| );....S|
|00000880| 65 74 50 6f 72 74 09 09 | 28 20 73 61 76 65 50 6f |etPort..|( savePo|
|00000890| 72 74 20 29 3b 0d 09 09 | 7d 0d 09 7d 0d 09 0d 09 |rt );...|}..}....|
|000008a0| 2f 2a 20 64 69 73 70 6c | 61 79 20 74 68 65 20 64 |/* displ|ay the d|
|000008b0| 69 61 6c 6f 67 20 77 69 | 6e 64 6f 77 20 61 6e 64 |ialog wi|ndow and|
|000008c0| 20 62 72 69 6e 67 20 69 | 74 20 74 6f 20 66 72 6f | bring i|t to fro|
|000008d0| 6e 74 20 2a 2f 0d 09 69 | 66 20 28 20 76 41 62 6f |nt */..i|f ( vAbo|
|000008e0| 75 74 42 6f 78 44 69 61 | 6c 6f 67 20 21 3d 20 6e |utBoxDia|log != n|
|000008f0| 69 6c 20 29 0d 09 7b 0d | 09 09 53 68 6f 77 57 69 |il )..{.|..ShowWi|
|00000900| 6e 64 6f 77 09 09 28 20 | 76 41 62 6f 75 74 42 6f |ndow..( |vAboutBo|
|00000910| 78 44 69 61 6c 6f 67 20 | 29 3b 0d 09 09 53 65 6c |xDialog |);...Sel|
|00000920| 65 63 74 57 69 6e 64 6f | 77 09 28 20 76 41 62 6f |ectWindo|w.( vAbo|
|00000930| 75 74 42 6f 78 44 69 61 | 6c 6f 67 20 29 3b 0d 09 |utBoxDia|log );..|
|00000940| 7d 0d 7d 20 2f 2a 20 41 | 62 6f 75 74 42 6f 78 4f |}.} /* A|boutBoxO|
|00000950| 70 65 6e 20 2a 2f 0d 0d | 0d 2f 2a 20 75 70 64 61 |pen */..|./* upda|
|00000960| 74 65 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |te the c|ontents |
|00000970| 6f 66 20 74 68 65 20 61 | 62 6f 75 74 20 62 6f 78 |of the a|bout box|
|00000980| 20 64 69 61 6c 6f 67 20 | 77 69 6e 64 6f 77 20 2a | dialog |window *|
|00000990| 2f 0d 76 6f 69 64 0d 41 | 62 6f 75 74 42 6f 78 55 |/.void.A|boutBoxU|
|000009a0| 70 64 61 74 65 20 28 20 | 76 6f 69 64 20 29 0d 7b |pdate ( |void ).{|
|000009b0| 0d 09 6d 79 5f 61 73 73 | 65 72 74 20 28 20 76 41 |..my_ass|ert ( vA|
|000009c0| 62 6f 75 74 42 6f 78 44 | 69 61 6c 6f 67 20 21 3d |boutBoxD|ialog !=|
|000009d0| 20 6e 69 6c 2c 20 22 5c | 70 41 62 6f 75 74 42 6f | nil, "\|pAboutBo|
|000009e0| 78 55 70 64 61 74 65 3a | 20 76 41 62 6f 75 74 42 |xUpdate:| vAboutB|
|000009f0| 6f 78 44 69 61 6c 6f 67 | 20 69 73 20 6e 69 6c 22 |oxDialog| is nil"|
|00000a00| 20 29 3b 0d 09 0d 09 2f | 2a 20 73 65 74 20 74 68 | );..../|* set th|
|00000a10| 65 20 64 69 61 6c 6f 67 | 20 73 74 72 69 6e 67 73 |e dialog| strings|
|00000a20| 20 2a 2f 0d 09 50 61 72 | 61 6d 54 65 78 74 20 28 | */..Par|amText (|
|00000a30| 20 67 56 65 72 73 69 6f | 6e 53 74 72 2c 20 6e 69 | gVersio|nStr, ni|
|00000a40| 6c 2c 20 6e 69 6c 2c 20 | 6e 69 6c 20 29 3b 0d 09 |l, nil, |nil );..|
|00000a50| 0d 09 2f 2a 20 64 72 61 | 77 20 74 68 65 20 64 69 |../* dra|w the di|
|00000a60| 61 6c 6f 67 20 2a 2f 0d | 09 44 72 61 77 44 69 61 |alog */.|.DrawDia|
|00000a70| 6c 6f 67 20 28 20 76 41 | 62 6f 75 74 42 6f 78 44 |log ( vA|boutBoxD|
|00000a80| 69 61 6c 6f 67 20 29 3b | 0d 7d 20 2f 2a 20 41 62 |ialog );|.} /* Ab|
|00000a90| 6f 75 74 42 6f 78 55 70 | 64 61 74 65 20 2a 2f 0d |outBoxUp|date */.|
|00000aa0| 0d 0d 2f 2a 20 63 6c 6f | 73 65 20 74 68 65 20 61 |../* clo|se the a|
|00000ab0| 62 6f 75 74 20 62 6f 78 | 20 77 69 6e 64 6f 77 20 |bout box| window |
|00000ac0| 2a 2f 0d 76 6f 69 64 0d | 41 62 6f 75 74 42 6f 78 |*/.void.|AboutBox|
|00000ad0| 43 6c 6f 73 65 20 28 20 | 76 6f 69 64 20 29 0d 7b |Close ( |void ).{|
|00000ae0| 0d 09 77 69 6e 64 6f 77 | 49 6e 66 6f 48 64 6c 09 |..window|InfoHdl.|
|00000af0| 64 6c 6f 67 57 69 6e 64 | 49 6e 66 6f 3b 0d 09 0d |dlogWind|Info;...|
|00000b00| 09 6d 79 5f 61 73 73 65 | 72 74 20 28 20 76 41 62 |.my_asse|rt ( vAb|
|00000b10| 6f 75 74 42 6f 78 44 69 | 61 6c 6f 67 20 21 3d 20 |outBoxDi|alog != |
|00000b20| 6e 69 6c 2c 20 22 5c 70 | 41 62 6f 75 74 42 6f 78 |nil, "\p|AboutBox|
|00000b30| 43 6c 6f 73 65 3a 20 76 | 41 62 6f 75 74 42 6f 78 |Close: v|AboutBox|
|00000b40| 44 69 61 6c 6f 67 20 69 | 73 20 6e 69 6c 22 20 29 |Dialog i|s nil" )|
|00000b50| 3b 0d 09 0d 09 64 6c 6f | 67 57 69 6e 64 49 6e 66 |;....dlo|gWindInf|
|00000b60| 6f 20 3d 20 28 77 69 6e | 64 6f 77 49 6e 66 6f 48 |o = (win|dowInfoH|
|00000b70| 64 6c 29 20 47 65 74 57 | 52 65 66 43 6f 6e 20 28 |dl) GetW|RefCon (|
|00000b80| 20 28 57 69 6e 64 6f 77 | 52 65 66 29 76 41 62 6f | (Window|Ref)vAbo|
|00000b90| 75 74 42 6f 78 44 69 61 | 6c 6f 67 20 29 3b 0d 09 |utBoxDia|log );..|
|00000ba0| 0d 09 69 66 20 28 20 64 | 6c 6f 67 57 69 6e 64 49 |..if ( d|logWindI|
|00000bb0| 6e 66 6f 20 21 3d 20 6e | 69 6c 20 29 0d 09 7b 0d |nfo != n|il )..{.|
|00000bc0| 09 09 44 69 73 70 6f 73 | 65 48 61 6e 64 6c 65 20 |..Dispos|eHandle |
|00000bd0| 28 20 28 48 61 6e 64 6c | 65 29 64 6c 6f 67 57 69 |( (Handl|e)dlogWi|
|00000be0| 6e 64 49 6e 66 6f 20 29 | 3b 0d 09 7d 0d 09 0d 09 |ndInfo )|;..}....|
|00000bf0| 44 69 73 70 6f 73 65 44 | 69 61 6c 6f 67 20 28 20 |DisposeD|ialog ( |
|00000c00| 76 41 62 6f 75 74 42 6f | 78 44 69 61 6c 6f 67 20 |vAboutBo|xDialog |
|00000c10| 29 3b 0d 09 0d 09 76 41 | 62 6f 75 74 42 6f 78 44 |);....vA|boutBoxD|
|00000c20| 69 61 6c 6f 67 20 3d 20 | 6e 69 6c 3b 0d 7d 20 2f |ialog = |nil;.} /|
|00000c30| 2a 20 41 62 6f 75 74 42 | 6f 78 43 6c 6f 73 65 20 |* AboutB|oxClose |
|00000c40| 2a 2f 0d 0d 0d 2f 2a 20 | 44 72 61 77 20 74 68 65 |*/.../* |Draw the|
|00000c50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 63 6f | applica|tion ico|
|00000c60| 6e 20 75 73 69 6e 67 20 | 74 68 65 20 49 43 4e 23 |n using |the ICN#|
|00000c70| 20 6f 72 20 61 20 63 6f | 6c 6f 72 20 69 63 6f 6e | or a co|lor icon|
|00000c80| 20 72 65 73 6f 75 72 63 | 65 20 2a 2f 0d 70 61 73 | resourc|e */.pas|
|00000c90| 63 61 6c 20 76 6f 69 64 | 0d 61 62 6f 75 74 42 6f |cal void|.aboutBo|
|00000ca0| 78 41 70 70 49 63 6f 6e | 20 28 20 44 69 61 6c 6f |xAppIcon| ( Dialo|
|00000cb0| 67 50 74 72 20 74 68 65 | 44 69 61 6c 6f 67 2c 20 |gPtr the|Dialog, |
|00000cc0| 73 68 6f 72 74 20 74 68 | 65 49 74 65 6d 20 29 0d |short th|eItem ).|
|00000cd0| 7b 0d 09 73 68 6f 72 74 | 09 09 69 74 65 6d 54 79 |{..short|..itemTy|
|00000ce0| 70 65 3b 0d 09 52 65 63 | 74 09 09 69 74 65 6d 52 |pe;..Rec|t..itemR|
|00000cf0| 65 63 74 3b 0d 09 48 61 | 6e 64 6c 65 09 09 69 74 |ect;..Ha|ndle..it|
|00000d00| 65 6d 48 61 6e 64 6c 65 | 3b 0d 09 50 65 6e 53 74 |emHandle|;..PenSt|
|00000d10| 61 74 65 09 63 75 72 50 | 65 6e 3b 0d 09 57 69 6e |ate.curP|en;..Win|
|00000d20| 64 6f 77 50 74 72 09 6f | 6c 64 50 6f 72 74 3b 0d |dowPtr.o|ldPort;.|
|00000d30| 09 0d 09 47 65 74 44 49 | 74 65 6d 20 28 20 74 68 |...GetDI|tem ( th|
|00000d40| 65 44 69 61 6c 6f 67 2c | 20 74 68 65 49 74 65 6d |eDialog,| theItem|
|00000d50| 2c 20 26 69 74 65 6d 54 | 79 70 65 2c 20 26 69 74 |, &itemT|ype, &it|
|00000d60| 65 6d 48 61 6e 64 6c 65 | 2c 20 26 69 74 65 6d 52 |emHandle|, &itemR|
|00000d70| 65 63 74 20 29 3b 0d 09 | 0d 09 47 65 74 50 6f 72 |ect );..|..GetPor|
|00000d80| 74 20 28 20 26 6f 6c 64 | 50 6f 72 74 20 29 3b 0d |t ( &old|Port );.|
|00000d90| 09 53 65 74 50 6f 72 74 | 20 28 20 28 47 72 61 66 |.SetPort| ( (Graf|
|00000da0| 50 74 72 29 74 68 65 44 | 69 61 6c 6f 67 20 29 3b |Ptr)theD|ialog );|
|00000db0| 0d 09 0d 09 47 65 74 50 | 65 6e 53 74 61 74 65 09 |....GetP|enState.|
|00000dc0| 28 20 26 63 75 72 50 65 | 6e 20 29 3b 0d 09 50 65 |( &curPe|n );..Pe|
|00000dd0| 6e 4e 6f 72 6d 61 6c 09 | 28 29 3b 0d 09 0d 09 49 |nNormal.|();....I|
|00000de0| 63 6f 6e 44 72 61 77 46 | 72 6f 6d 46 61 6d 69 6c |conDrawF|romFamil|
|00000df0| 79 20 28 20 6b 41 70 70 | 6c 69 63 61 74 69 6f 6e |y ( kApp|lication|
|00000e00| 49 63 6f 6e 53 75 69 74 | 65 2c 20 26 69 74 65 6d |IconSuit|e, &item|
|00000e10| 52 65 63 74 2c 20 26 76 | 41 62 6f 75 74 49 63 6f |Rect, &v|AboutIco|
|00000e20| 6e 53 75 69 74 65 48 64 | 6c 20 29 3b 0d 0d 09 53 |nSuiteHd|l );...S|
|00000e30| 65 74 50 65 6e 53 74 61 | 74 65 09 28 20 26 63 75 |etPenSta|te.( &cu|
|00000e40| 72 50 65 6e 20 29 3b 0d | 09 53 65 74 50 6f 72 74 |rPen );.|.SetPort|
|00000e50| 09 09 28 20 6f 6c 64 50 | 6f 72 74 20 29 3b 0d 7d |..( oldP|ort );.}|
|00000e60| 20 2f 2a 20 61 62 6f 75 | 74 42 6f 78 41 70 70 49 | /* abou|tBoxAppI|
|00000e70| 63 6f 6e 20 2a 2f 0d 0d | 0d 23 65 6e 64 69 66 09 |con */..|.#endif.|
|00000e80| 2f 2a 20 6b 43 6f 6d 70 | 69 6c 65 57 69 74 68 46 |/* kComp|ileWithF|
|00000e90| 6f 72 65 67 72 6f 75 6e | 64 20 2a 2f 0d 0d 2f 2a |oregroun|d */../*|
|00000ea0| 2a 2a 2a 2a 20 20 45 4f | 46 20 20 2a 2a 2a 2a 2a |**** EO|F *****|
|00000eb0| 2f 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000f10| 00 00 2d ed 10 4d 61 63 | 48 54 54 50 20 43 6f 6e |..-..Mac|HTTP Con|
|00000f20| 66 69 67 2e b9 00 00 00 | 00 00 00 00 00 00 00 00 |fig.....|........|
|00000f30| 0a 41 62 6f 75 74 42 6f | 78 2e 63 00 02 00 00 00 |.AboutBo|x.c.....|
|00000f40| 54 45 58 54 43 57 49 45 | 00 04 00 00 00 00 00 00 |TEXTCWIE|........|
|00000f50| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 aa 21 d0 0d 00 00 | 00 00 00 00 01 9a 00 00 |...!....|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 06 87 25 00 00 00 |........|....%...|
|00000f90| 2d ed 07 73 6f 75 72 63 | 65 73 00 00 00 00 00 00 |-..sourc|es......|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 06 64 25 00 | 00 00 2d ef 00 00 00 00 |.....d%.|..-.....|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 06 80 |........|........|
|00000fe0| 25 00 00 00 2d ef 0b 41 | 70 70 49 6e 69 74 50 72 |%...-..A|ppInitPr|
|00000ff0| 2e 68 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.h......|........|
|00001000| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 05 01 b4 |........|...W....|
|00001030| 02 19 00 57 00 05 01 b4 | 02 19 ad 2d d1 b6 00 00 |...W....|...-....|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00001050| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00001060| 00 00 00 46 00 fc cb ec | 1d 62 00 00 00 1c 00 46 |...F....|.b.....F|
|00001070| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001080| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001090| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+